/**   
 * Copyright © 2016 深圳市欧唯科技有限公司. All rights reserved.
 * 
 * @Title: MailVo.java 
 * @Prject: Web
 * @Package: com.adv.vo 
 * @Description: TODO
 * @author: WUQINGLONG   
 * @date: 2016年9月20日 下午2:14:36 
 * @version: V1.0   
 */
package com.adv.vo;

import java.io.File;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;

/**
 * @ClassName: MailInfo
 * @Description: TODO
 * @author: WUQINGLONG
 * @date: 2016年9月20日 下午2:14:36
 */
public class MailInfo {

	/**
	 * 内容id
	 */
	private String contendId;

	/**
	 * 邮件发送者
	 */
	private String sender;

	/**
	 * 邮件接收者
	 */
	private String[] receivers;

	/**
	 * Carbon Copy(抄送)
	 */
	private String[] cc;

	/**
	 * Blind Carbon Copy(暗抄送)
	 */
	private String[] bcc;

	/**
	 * 邮件主题
	 */
	private String subject;

	/**
	 * Email发送的内容
	 */
	private String content;

	/**
	 * freemarker模板名称
	 */
	private String templateName;

	/**
	 * freemarker模板参数
	 */
	private Map<String, Object> templateParam;

	/**
	 * freemarker模板内嵌资源
	 */
	private Map<String, File> inlineMap;

	/**
	 * Email内容是否是html
	 */
	private boolean isHtmlContent;

	/**
	 * 邮件附件
	 */
	private File[] attachFile;

	/**
	 * 发送时间
	 */
	private Date sendDate;

	public String getContendId() {
		return contendId;
	}

	public void setContendId(String contendId) {
		this.contendId = contendId;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String[] getReceivers() {
		return receivers;
	}

	public void setReceivers(String[] receivers) {
		this.receivers = receivers;
	}

	public String[] getCc() {
		return cc;
	}

	public void setCc(String[] cc) {
		this.cc = cc;
	}

	public String[] getBcc() {
		return bcc;
	}

	public void setBcc(String[] bcc) {
		this.bcc = bcc;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

	public Map<String, Object> getTemplateParam() {
		return templateParam;
	}

	public void setTemplateParam(Map<String, Object> templateParam) {
		this.templateParam = templateParam;
	}

	public Map<String, File> getInlineMap() {
		return inlineMap;
	}

	public void setInlineMap(Map<String, File> inlineMap) {
		this.inlineMap = inlineMap;
	}

	public boolean isHtmlContent() {
		return isHtmlContent;
	}

	public void setHtmlContent(boolean isHtmlContent) {
		this.isHtmlContent = isHtmlContent;
	}

	public File[] getAttachFile() {
		return attachFile;
	}

	public void setAttachFile(File[] attachFile) {
		this.attachFile = attachFile;
	}

	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	@Override
	public String toString() {
		return "MailInfo [contendId=" + contendId + ", sender=" + sender + ", receivers=" + Arrays.toString(receivers)
				+ ", cc=" + Arrays.toString(cc) + ", bcc=" + Arrays.toString(bcc) + ", subject=" + subject
				+ ", content=" + content + ", templateName=" + templateName + ", templateParam=" + templateParam
				+ ", inlineMap=" + inlineMap + ", isHtmlContent=" + isHtmlContent + ", attachFile="
				+ Arrays.toString(attachFile) + ", sendDate=" + sendDate + "]";
	}

}
